﻿using System.Collections.Generic;
using Monkey.Warrenty.EntityModel;

namespace Monkey.Warrenty.Data.Interfaces
{
    public interface IManufacturerDao
    {
        int GetManufacturerCountByFilter(string name, int manufacturerGroupId);

        List<Manufacturer> GetManufacturersByFilter(string name, int manufacturerGroupId, int startIndex, int pageSize,
                                            string sorting);

        Manufacturer AddManufacturer(Manufacturer manufacturer);
        void UpdateManufacturer(Manufacturer manufacturer);
        void DeleteManufacturer(int manufacturerId);
        List<Manufacturer> GetAllManufacturers();
        int GetMaxId();
        int GetCurrentIdentity();
        Manufacturer GetById(int id);
    }
}
